-- GENERATED SPELL FOR [Risen Drakkari Handler] --


function spell0_26637(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26637', 2250, 1)
end

function spell1_26637(pUnit, Event) --@Hooked Net,n/a--
pUnit:FullCastSpellOnTarget(49711,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26637', 4500, 1)
end

function spell2_26637(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(49712,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26637', 605, 1)
end

function spell3_26637(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(59001,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26637', 671, 1)
end

function Sorts_26637(pUnit, Event)
local choix_sorts_26637 = math.random(0, 3)
if choix_sorts_26637 == 0 then
pUnit:RegisterEvent('spell0_26637', 1, 1)
end
if choix_sorts_26637 == 1 then
pUnit:RegisterEvent('spell1_26637', 1, 1)
end
if choix_sorts_26637 == 2 then
pUnit:RegisterEvent('spell2_26637', 1, 1)
end
if choix_sorts_26637 == 3 then
pUnit:RegisterEvent('spell3_26637', 1, 1)
end
end

function mob26637_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26637', math.random(1500, 3000), 1)
end

function mob26637_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26637_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26637_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26637, 1, 'mob26637_Action')
RegisterUnitEvent(26637, 2, 'mob26637_Leave')
RegisterUnitEvent(26637, 3, 'mob26637_Kill')
RegisterUnitEvent(26637, 4, 'mob26637_Die')
